package com.zg.common.core.dao.scf.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zg.common.core.dao.BaseEntity;
import com.zg.common.core.dao.ConditionType;
import com.zg.common.core.dao.QueryCondition;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * DESCRIPTION
 *
 * @author zhanfeng.liang
 * @since 2025-07-24
 */

@Data
@TableName(value = "IMG_CATEGORY")
public class ImgCategory extends BaseEntity {

    @QueryCondition(type = ConditionType.LIKE)
    private String title;

    @QueryCondition(type = ConditionType.EQ)
    private Long pid;

    private String state;

    private Integer sort;

    private BigDecimal max;

    @QueryCondition(type = ConditionType.EQ)
    private Long configId;

    @TableField(exist = false)
    @QueryCondition(type = ConditionType.IN,filed = "pid")
    private List<Long> pids;
}
